package com.xing.dao;

import com.xing.entity.pojo.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper {
    int deleteByPrimaryKey(String newsId);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(String newsId);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);

    int findArticleTotalCount( @Param("typeName") String typeName,@Param("newsState") Byte newsState);

    List<Article> findArticleAll(@Param("start") Integer start, @Param("rows") Integer rows,@Param("typeName")
              String typeName,@Param("newsState") Byte newsState);

    Article findByTitle(String title);
}